// ProcessingPane.cpp : implementation file
//

#include "stdafx.h"
#include "MotionControlSoftware.h"
#include "ProcessingPane.h"


// CProcessingPane

IMPLEMENT_DYNAMIC(CProcessingPane, CDockablePane)

CProcessingPane::CProcessingPane()
{

}

CProcessingPane::~CProcessingPane()
{
}


BEGIN_MESSAGE_MAP(CProcessingPane, CDockablePane)
	ON_WM_CREATE()
	ON_WM_DESTROY()
	ON_WM_SIZE()
//	ON_WM_CONTEXTMENU()
	ON_WM_SHOWWINDOW()
END_MESSAGE_MAP()



// CProcessingPane message handlers
int CProcessingPane::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CDockablePane::OnCreate(lpCreateStruct) == -1)
		return -1;

	// TODO:  Add your specialized creation code here
	m_processingView.Create(IDD_DLG_ProcessingPane,this);
	m_processingView.ShowWindow(SW_SHOW);
	return 0;
}


void CProcessingPane::OnDestroy()
{
	CDockablePane::OnDestroy();

	// TODO: Add your message handler code here
	m_processingView.DestroyWindow();
}


void CProcessingPane::OnSize(UINT nType, int cx, int cy)
{
	CDockablePane::OnSize(nType, cx, cy);

	// TODO: Add your message handler code here
	if (m_processingView.GetSafeHwnd())
	{
		CRect rct;
		GetClientRect(&rct);
		m_processingView.MoveWindow(rct);
	}


}


void CProcessingPane::OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/)
{
	// TODO: Add your message handler code here
}


void CProcessingPane::OnShowWindow(BOOL bShow, UINT nStatus)
{
	CDockablePane::OnShowWindow(bShow, nStatus);

	// TODO: Add your message handler code here
	m_processingView.UpdateDoc();
}
